package com.jinzhi.wxpay.dao;




import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.wxpay.entity.OrderInfo;
import com.jinzhi.wxpay.entity.OrderParme;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;


public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    OrderInfo createOrderByProductId(Long userId, Long productId);//传入订单id和用户id，查询订单是否已经存在

    List<OrderInfo> listOrderByCreateTimeDesc(Page<OrderParme> pager,OrderParme  orderParme);//查询订单信息

    //订单详情数据
    OrderInfo  selectOrderXQ(Long id);

    OrderInfo  createOrderByJFSum();//总收款金额

    //根据时间进行导出
    List<OrderInfo>  OrderInfoExcel(OrderParme  orderParme);
}
